<template>
	<div class="footer-wrap">
		<div class="footer">
			<div class="flex-box" @click="jumpView('platformIntro')">
				<img src="@/assets/img/home_img14.png" alt="">
				<span>平台介绍</span>
			</div>
			<div class="flex-box" @click="jumpView('newbieGuide')">
				<img src="@/assets/img/home_img15.png" alt="">
				<span>新手指南</span>
			</div>
			<div class="flex-box" @click="jumpView('farmLive')">
				<img src="@/assets/img/home_img16.png" alt="">
				<span>牧场直播</span>
			</div>
			<div class="flex-box" @click="jumpView('platformNews')">
				<img src="@/assets/img/home_img17.png" alt="">
				<span>友牧资讯</span>
			</div>
		</div>
		<div class="kf-phone">
			<p>
				<span>客服电话：{{telData}}</span>
				<span>工作日：9:00-18:00</span>
			</p>
			<p>粤ICP备19105555号-2</p>
		</div>
	</div>
</template>

<script>
	export default {
		props: {
			telData: String
		},
		methods: {
			jumpView(viewName) {
				this.$emit('hideEchart')
				this.$router.push({
					name: viewName
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.footer{
		width: 100%;
		height: 92px;
		display: flex;
		justify-content: space-around;
		background-color: #fff;
		align-items: center;
		.flex-box{
			display: flex;
			flex-direction: column;
			align-items: center;
			img{
				width: 28px;
				margin-bottom: 10px;
			}
			span{
				font-size: 12px;
				color: #666666;
			}
		}
	}
	.kf-phone{
		width: 100%;
		height: 74px;
		background-color: #F8F8F8;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: space-around;
		padding: 20px 0 18px 0;
		p{
			font-size: 12px;
			color: #969C9E;
			&:nth-child(1) {
				span {
					&:nth-child(1) {
						margin-right: 10px;
					}
				}
			}
		}
	}
</style>
